package com.ruoyi.store.mapper;

import com.ruoyi.store.domain.StuExamDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface StuExamDetailMapper {
    int insertStuExamDetail(StuExamDetail stuExamDetail);

    List<StuExamDetail> selectStuExamDetailList(StuExamDetail stuExamDetail);

    int updateScore(StuExamDetail stuExamDetail);

    StuExamDetail selectStuExamDetailByUserIdPaperId(@Param(value = "userId") Long userId, @Param(value = "paperId") Long paperId);

    List<StuExamDetail> selectStuExamByPaperId(Long paperId);

    List<StuExamDetail> selectStuExamByUserId(Long userId);
}
